<template>
  <el-dialog 
    :close-on-click-modal="false"
    :append-to-body="true"
  :visible.sync="visible" title="供应商详情" width="1000px">
    <SupplierDetail />
    <div slot="footer">
      <el-button type="primary" plain @click="visible = false">关闭</el-button>
    </div>
  </el-dialog>
</template>

<script>
// import { getPositionByDeptId } from '@/api/department'
import SupplierDetail from '@/views/supplier/detail'

export default {
  components: { SupplierDetail },
  props: {
    // 选择值
    userId: {
      type: String,
      default: ''
    }
  },
  data() {
    return {
      visible: false
    }
  },
  watch: {
    userId(n, o) {
      if (n !== '' || n !== null) {
        this.getUserInfo()
      }
    }
  },
  created() {
    this.getUserInfo()
  },
  methods: {
    getUserInfo() {
      if (this.userId) {
        
      }
    },
    open() {
      this.visible = true
    }
  }
}
</script>